﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Capa_Dominio.SalaEnsayo>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	.:. Systema Studio7i .:.
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Registrar una Sala</h2>
 <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm("Create", "Sala", FormMethod.Post)) {%>
        <%: Html.ValidationSummary(true) %>
        <fieldset>
            <legend>Datos de la Sala</legend>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.NombreSala) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.NombreSala) %>
                <%: Html.ValidationMessageFor(model => model.NombreSala) %>
            </div>
             <div class="editor-label">
                Local
            </div>
            <div class="editor-field"> 
                <%: Html.DropDownList("LocalCodig", (IEnumerable<SelectListItem>)TempData["locales"]) %>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.Capacidad) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Capacidad) %>
                <%: Html.ValidationMessageFor(model => model.Capacidad) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Caracteristicas) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Caracteristicas) %>
                <%: Html.ValidationMessageFor(model => model.Caracteristicas) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Disponibilidad) %>
            </div>
            <div class="editor-field">
                <%: Html.CheckBoxFor(model => model.Disponibilidad)%>
                <%: Html.ValidationMessageFor(model => model.Disponibilidad) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Comentarios) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Comentarios) %>
                <%: Html.ValidationMessageFor(model => model.Comentarios) %>
            </div>
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

